package com.techshine.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.techshine.mapper.BaomingMapper;
import com.techshine.entity.Baoming;
import com.techshine.service.BaomingService;

import java.util.List;

@Service
public class BaomingServiceImpl implements BaomingService{

    @Resource
    private BaomingMapper baomingMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return baomingMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Baoming record) {
        return baomingMapper.insert(record);
    }

    @Override
    public int insertSelective(Baoming record) {
        return baomingMapper.insertSelective(record);
    }

    @Override
    public Baoming selectByPrimaryKey(Integer id) {
        return baomingMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Baoming record) {
        return baomingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Baoming record) {
        return baomingMapper.updateByPrimaryKey(record);
    }
    @Override
    public List<Baoming> selectByPage(Baoming baoming) {
        return baomingMapper.selectByPage(baoming);
    }

    @Override
    public List<Baoming> selectList(Baoming baoming) {
        return baomingMapper.selectList(baoming);
    }

}
